package zut.cs.liziflower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuwenke
 * @since 2022-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("notice")
@ApiModel(value="Notice对象", description="")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公告id")
    @TableId(value = "noticeid", type = IdType.AUTO)
    private Integer noticeid;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "正文")
    private String text;

    @ApiModelProperty(value = "发布时间")
    private LocalDateTime time;

    @ApiModelProperty(value = "发布人")
    private String publisher;

    @ApiModelProperty(value = "截止日期")
    private LocalDateTime publishtime;

    @ApiModelProperty(value = "管理员id 外键")
    private Integer adminid;


}
